#include "workSpace.h"
#include <QtGui>


workSpace::workSpace()
{
	QMdiArea *work = new QMdiArea();
	QMainWindow *window1 = new QMainWindow();
	QMainWindow *window2 = new QMainWindow();
	QMainWindow *window3 = new QMainWindow();

	QTextEdit *text1 = new QTextEdit("1");
	QTextEdit *text2 = new QTextEdit("2");
	QTextEdit *text3 = new QTextEdit("3");

	window1->setWindowTitle("one");
	window2->setWindowTitle("two");
	window3->setWindowTitle("three");

	window1->setCentralWidget(text1);
	window2->setCentralWidget(text2);
	window3->setCentralWidget(text3);

	work->addSubWindow(window1);
	work->addSubWindow(window2);
	work->addSubWindow(window3);

	setCentralWidget(work);

}
